package s47.dqj.dao;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;

import s47.dqj.bean.DepartmentDateDetail;

public interface DepartmentDateDetailDaoInf {

	@Resource(name = "sessionFactory")
	public abstract void setSupperSessionFactory(SessionFactory sessionFactory);

	/**
	 * 根据总ddid排班表编码查找该排班表下所有的值班情况
	 * @param departmentDateDetail
	 * @return
	 */
	public abstract List<DepartmentDateDetail> findAllByDdid(
			DepartmentDateDetail departmentDateDetail);

	/**
	 * 新增一个排班详情
	 * @param departmentDateDetail
	 */
	public abstract void save(DepartmentDateDetail departmentDateDetail);

	/**
	 * 修改一个排班详情
	 * @param departmentDateDetail
	 */
	public abstract void update(DepartmentDateDetail departmentDateDetail);

	/**
	 * 删除一个排班详情
	 * @param departmentDateDetail
	 */
	public abstract void delete(DepartmentDateDetail departmentDateDetail);

}